/*
//	CP2013 Traffic Simulator Assignment :: (MVC) View (Header File)
//	Copyright (c) 2010, Adam Rehn
//
//	This the main MVC View class, which is wrapped inside the main wxWidgets GUI frame.
*/

#ifndef _VIEW_H
#define _VIEW_H

//We visualise the model
#include "../model/model.h"

//We control the SDL visualisation window
#include "visualisation.h"

class mvcView
{
	public:
		//Contructor and Destructor
		mvcView();
		~mvcView();
		
		//Use this to set the cycle length in seconds
		void setCycleLength(double cycleLength);
		
		//Use this to composite the map
		void resetView(mvcModel* model);
		
		//Use this to update the dynamic layers
		void updateView(mvcModel* model, clock_t start = 0, unsigned int i = 0, unsigned int t = 0);
		
		//Use this to set the window title of the visualisation window
		void setVisWindowTitle(char* title);
		
	private:
		visualisationWindow *vis;
};

#endif
